/**
 * 
 */
package mblog.core.persist.dao;

import java.util.List;

import mtons.modules.persist.Dao;
import mtons.modules.pojos.Page;

import com.faxsun.core.persist.entity.CommentPO;

/**
 * @author langhsu
 * @author songdragon 2015-04-29 14:53 添加评论类型
 * @author songdragon 2015-05-20 14:38 删除评论
 */
public interface CommentDao extends Dao<CommentPO> {
	List<CommentPO> paging(Page page, long toId,int type,int status);
    
	List<CommentPO> pagingInbox(Page page, long userId, int status);
	
	List<CommentPO> retrieveNewest(Page page);
	
	boolean delete(long id);
	
    List<CommentPO> getCommentsFrom(long toId, long startId, long endId, int size, List<Integer> types, int status, List<Long> blacklistAuthors); 
    
    long getMaxCommentIdFrom(long toId, int type, int status, List<Long> blacklistAuthors);
    
    int count(Long toId, int type);
}
